package com.njworkorder.Service.Impl;

import com.github.yulichang.base.MPJBaseServiceImpl;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.njworkorder.Entity.AdministrativePersonnel;
import com.njworkorder.Entity.InsuranceRegistration;
import com.njworkorder.Service.InsuranceRegistrationService;
import com.njworkorder.Mapper.InsuranceRegistrationMapper;
import com.njworkorder.VO.InsuranceRegistrationVo;
import org.springframework.stereotype.Service;

/**
* @author iron
* @description 针对表【insurance_registration】的数据库操作Service实现
* @createDate 2025-04-15 13:58:45
*/
@Service
public class InsuranceRegistrationServiceImpl extends MPJBaseServiceImpl<InsuranceRegistrationMapper, InsuranceRegistration>
    implements InsuranceRegistrationService{


    @Override
    public MPJLambdaWrapper<InsuranceRegistration> getMPJWrapper() {
        return new MPJLambdaWrapper<InsuranceRegistration>()
                .selectAll(InsuranceRegistration.class)
                .selectAs(AdministrativePersonnel::getName, InsuranceRegistrationVo::getCreateApName)
                .leftJoin(AdministrativePersonnel.class,AdministrativePersonnel::getId,InsuranceRegistration::getCreateApId);
    }
}




